package com.xdw.vuebackdemo.mapper;


import com.xdw.vuebackdemo.model.Permission;
import com.xdw.vuebackdemo.model.Role;
import com.xdw.vuebackdemo.model.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;
/**
 * @author xiadewang
 */
public interface RoleMapper {
    UserRole findRolesByUserId(@Param("userId") long userId);
    Role findRoleAndPermissionsByRoleId(@Param("roleId") long roleId);
    Set<Permission> getPemissionsByListRole(@Param("roleList") List<Role> roleList);
}
